package com.solcoo.merchant.qrcode;

import android.graphics.Bitmap;

import com.android.common.util.DensityUtil;
import com.google.zxing.WriterException;
import com.zxing.encoding.EncodingHandler;

public class Qrcode {

	public static Bitmap create(String str, int sideSize) {
		Bitmap bitmap = null;
		try {

			bitmap = EncodingHandler.createQRCode(str,
					DensityUtil.dip2px(sideSize));
		} catch (WriterException e) {
		}
		return bitmap;
	}
}
